package com.anli.web;

import com.anli.leguansuo.LeGuanSuoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/9  9:03
 * 描述: 测试数据库乐观锁
 */

@RestController
public class TestDBLeGuanSuoController {

    @Autowired
    private LeGuanSuoService leGuanSuoService;

    @RequestMapping("leGuan")
    public void test(){
        leGuanSuoService.updateStock("100",1);
    }



}
